package cn.edu.neu.springbootdemo.service.impl;

import cn.edu.neu.springbootdemo.mapper.OrderMapper;
import cn.edu.neu.springbootdemo.mapper.UserMapper;
import cn.edu.neu.springbootdemo.model.Order;
import cn.edu.neu.springbootdemo.model.User;
import cn.edu.neu.springbootdemo.service.Orderservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServicelmpl implements Orderservice {
    @Autowired
    private OrderMapper mapper;


    @Override
    public List<Order> getSOrderList() {

        return mapper.getSOrderList();
    }

    @Override
    public Boolean deleteSOrder(int parseInt) {
        return mapper.deleteSOrder(parseInt);
    }

    @Override
    public List<Order> findSOrder(int sorder_id) {
        return mapper.findSOrder(sorder_id);
    }

    @Override
    public Order findIdSOrder(int order_id) {
        return mapper.findIdSOrder(order_id);
    }

    @Override
    public List<Order> getMOrderList() {
        return mapper.getMOrderList();
    }

    @Override
    public Boolean deleteMOrder(int parseInt) {
        return mapper.deleteMOrder(parseInt);
    }

    @Override
    public void addSOrder(Order order) {
        mapper.addSOrder(order);
    }

    @Override
    public void addMOrder(Order order) {
        mapper.addMOrder(order);
    }

    @Override
    public String[] Seat(int show_id) {
        return mapper.Seat(show_id);
    }
}
